home *** CD-ROM | disk | FTP | other *** search
- Path: news.tau.ac.il!usenet
- From: "Eran Globen (limbo)" <besther@halo.tau.ac.il>
- Newsgroups: comp.lang.c
- Subject: free() wont free
- Date: Sun, 03 Mar 1996 15:16:21 +0300
- Organization: limbo
- Message-ID: <31398D95.5701DCB4@halo.tau.ac.il>
- NNTP-Posting-Host: slip-109.tau.ac.il
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.3.25 i486)
-
- Hi,
- i got a problem with memory allocation, or rather deallocation.
- i malloc() a linked list inside some function, use it i some other
- functions and try to free() it using another funtion (all of this is in
- borlnd c++ 3.1).
- problem is free() doesn't free any of the memory. fter a few rounds (of
- creating a few lists) i just ruun out of memory (malloc return a NULL).
- i check the free memory with coreleft() and it's the same before and
- after the call(s) to free(). i tried a simple program which allocates
- memory using mlloc and then frees it using free() and the memmory was
- freed (it showed in coreleft()) although i don't think it should have
- been returned to the system, only to the free list but that doesnn't
- realy matter.
-
- How do i REALY fre the memory so i can use it again?
-
- TIA,
- limbo.
-